package com.xiaoc.bulldozer.facade;

import com.xiaoc.bulldozer.common.model.Account;
import com.xiaoc.bulldozer.common.model.AccountBalance;

/**
 * describe:
 *
 * @author lihuancheng
 * @date 2018/8/31
 */
public interface AccountBalanceFacade {
    /**
     * 根据userId，type 获取余额信息
     *
     * @param userId
     * @param type
     * @return
     * @throws Exception
     */
    public AccountBalance getAccountBalanceByUserIdAndType(Integer userId, Integer type);

    public void saveAccountBalanceAndBalanceDetailByAccount(Account account);


    public AccountBalance initAccountBalance(Integer userId, Integer accountId, Integer type);


}
